package com.ecr.hub.database.dao;

import java.util.Date;
import java.util.List;

import org.springframework.dao.DataAccessException;

import com.ecr.hub.model.sillon.Sillon;

public interface IDaoSillon {

	public Sillon getById(int id);

	public List<Sillon> getAll() throws DataAccessException;

	public void updateComment(Sillon sillon) throws DataAccessException;

	public void update(Sillon sillon) throws DataAccessException;

	public List<Sillon> getListForArrival() throws DataAccessException;

	public List<Sillon> getListForDeparture() throws DataAccessException;

	public List<Sillon> getListByDateAndTime(Date date, Date dateEnd,
			String time, String timeEnd, String type)
			throws DataAccessException;

	public void integrate(List<Sillon> sillons) throws DataAccessException;

	public Sillon getByExtIdAndDate(String sillonExtId, Date dateSillon)
			throws DataAccessException;;

	public Sillon getByTcmsTrainId(String tcmsTrainId)
			throws DataAccessException;

	public List<Sillon> historize(Date date) throws DataAccessException;
}
